extends "../cTDM/cTDM.gd"
func _info():
	pass

func _connect():
	._connect()

func _extInit():
	._extInit()
	chaName = "占卜师"
	lv = 2
	attCoe.atk = 20 / 8.5 * 2 / 2
	attCoe.maxHp = 600 / 112.5 / 2
	addSkillTxt("奥术飞弹·光：奥术飞弹附加光属性，50%附加2层<失明>，10%附加2层<沉默>")
	addSkillTxt("汲取能量：普攻汲取10点能量，100点后，攻击+<20 * (lv-1)>点")
var energy = 0
var collect = 10
func _onBattleStart():
	._onBattleStart()
	energy = 0
func _onBattleEnd():
	._onBattleEnd()
	if energy >= 100:
		attAdd.atk -= 20 * (self.lv - 1)
		upAtt()
func _onAtkChara(atkinfo):
	._onAtkChara(atkinfo)
	if !atkinfo.isMiss && atkinfo.atkType == Chara.AtkType.NORMAL:
		if energy >= 100:return
		energy += collect
		if  energy >= 100:
			attAdd.atk += 20 * (self.lv - 1)